import request from '@/utils/request'

// 获取swagger-ui
export function getSwaggerUI() {
  return request.get('/swagger-ui/')
}

// 获取api文档
export function getApiDocs() {
  return request.get('/v3/api-docs/')
}

// 获取doc.html
export function getDocHtml() {
  return request.get('/doc.html')
}

// 获取webjars资源
export function getWebjars(path) {
  return request.get(`/webjars/${path}`)
}

// 获取favicon
export function getFavicon() {
  return request.get('/favicon.ico')
}

// github oauth2 回调
export function githubOauth2Callback(params) {
  return request.get('/login/oauth2/code/github', { params })
} 